//
//  AddressTableViewCell.swift
//  CJXSwiftStoryboard
//
//  Created by CJX on 2016/10/25.
//  Copyright © 2016年 caijianxi. All rights reserved.
//

import UIKit

class AddressTableViewCell: UITableViewCell {

    
    @IBOutlet weak var lastNameLabel: UILabel!
    
    @IBOutlet weak var firstNameLabel: UILabel!
    
    @IBOutlet weak var addressLabel: UILabel!
    
    @IBOutlet weak var cityLabel: UILabel!
    
    @IBOutlet weak var postcodeLabel: UILabel!
    
    @IBOutlet weak var stateLabel: UILabel!
    
    @IBOutlet weak var countryLabel: UILabel!
    
    
    @IBOutlet weak var telephoneLabel: UILabel!
    
    
    
    var model : AddressModel?{
        didSet{
            lastNameLabel.text = model?.lastname
            firstNameLabel.text = model?.firstname
            addressLabel.text = model?.street_address
            cityLabel.text = model?.city
            postcodeLabel.text = model?.postcode
            stateLabel.text = model?.state
            countryLabel.text = model?.country_name
            telephoneLabel.text = model?.telephone
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
